package com.x.service.impl;

import com.x.dao.StudentDao;
import com.x.pojo.Student;
import com.x.service.StudentService;

import java.util.List;

/**
 * ClassName: StudentServiceImpl
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2024.09.02 22:09
 */
public class StudentServiceImpl implements StudentService {

    private StudentDao studentDao;

    public void setStudentDao(StudentDao studentDao) {
        this.studentDao = studentDao;
    }

    @Override
    public List<Student> findAll() {
        List<Student> studentList = studentDao.queryAll();
        System.out.println("StudentService层: "+ studentList);
        return studentList;
    }
}
